package a.f.d;

import a.c.ab;
import a.c.bb;
import a.c.d;
import a.c.e;
import a.c.k;
import a.c.m;
import a.c.v;
import a.c.x;
import a.c.z;
import a.d.t;
import a.f.fd;
import a.f.kc;
import a.f.oc;
import a.f.zc;
import a.i.l;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

class db
{
  private a.f.o a;
  private x b;
  private boolean c;
  private static Comparator d = new a_(false);
  private static Comparator e = new a_(true);
  private x g;
  private x h;
  private k i;
  private boolean j = false;
  
  public db(a.f.o paramo, x paramx1, x paramx2, k paramk)
  {
    this.a = paramo;
    this.g = paramx1;
    this.h = paramx2;
    this.i = paramk;
    this.j = true;
  }
  
  public void a(boolean paramBoolean)
  {
    this.c = paramBoolean;
  }
  
  public boolean a()
  {
    return this.c;
  }
  
  public bb[] a(bb[] paramArrayOfbb)
  {
    int i6 = f.o;
    int i5 = f.n;
    if (i6 == 0) {
      if (!c()) {
        return paramArrayOfbb;
      }
    }
    x localx = c.a(this.a);
    int[] arrayOfInt = new int[this.a.k()];
    int k = 0;
    do
    {
      if (k >= paramArrayOfbb.length) {
        break;
      }
      int m = 0;
      localObject1 = paramArrayOfbb[k].l();
      if (((a.c.w)localObject1).e())
      {
        arrayOfInt[localObject1.d().f()] = m;
        ((a.c.w)localObject1).f();
        m++;
      }
      for (;;)
      {
        if (i6 == 0) {
          if (i5 == 0)
          {
            if (i5 == 0) {
              break;
            }
            if (i6 != 0) {
              continue;
            }
            k++;
          }
        }
      }
    } while (i5 == 0);
    ib localib1 = new ib(arrayOfInt, (byte)0);
    ib localib2 = new ib(arrayOfInt, (byte)1);
    this.a.a(localib2, localib1);
    Object localObject1 = new z();
    Object[] arrayOfObject = new Object[paramArrayOfbb.length];
    ArrayList localArrayList = new ArrayList(paramArrayOfbb.length * 2);
    int n = 0;
    do
    {
      do
      {
        if (n >= paramArrayOfbb.length) {
          break;
        }
        localArrayList.add(arrayOfObject[n] =  = c.a(paramArrayOfbb[n], localx));
        n++;
        if (i6 != 0) {
          break label248;
        }
        if (i5 != 0) {
          break label246;
        }
      } while (i5 == 0);
    } while (i6 != 0);
    n = 0;
    label246:
    label248:
    Object localObject3;
    Object localObject4;
    Object localObject5;
    int i1;
    Object localObject7;
    label361:
    Object localObject8;
    label482:
    label484:
    label620:
    label636:
    label638:
    do
    {
      if (n >= paramArrayOfbb.length) {
        break;
      }
      localObject2 = paramArrayOfbb[n];
      localObject3 = new Integer(((z)localObject1).size());
      localObject4 = new Integer(((z)localObject1).size() + 1);
      ((z)localObject1).add(localObject2);
      localObject5 = this.a.c(oc.a);
      i1 = 0;
      if (i5 != 0) {
        break label1011;
      }
      int i2 = !this.j ? 1 : 0;
      localObject7 = ((bb)localObject2).f();
      Object localObject9;
      Object localObject10;
      do
      {
        if (localObject7 != null) {}
        while (i6 != 0)
        {
          if (i5 != 0) {
            break label620;
          }
          if (i2 == 0)
          {
            localObject8 = (e)((v)localObject7).c();
            this.g.a(localObject8, localObject3);
            if (i6 == 0)
            {
              if (this.h.get(localObject8) == null)
              {
                localObject9 = ((e)localObject8).h();
                do
                {
                  if (localObject9 == null) {
                    break;
                  }
                  if (i5 != 0) {
                    break label620;
                  }
                  if (i2 != 0) {
                    break;
                  }
                  localObject10 = (d)this.h.get(((d)localObject9).f());
                  if (i6 == 0) {
                    if (localObject10 == null)
                    {
                      if (i6 != 0) {
                        break label482;
                      }
                      arrayOfkc = (kc[])((k)localObject5).get(localObject9);
                      if (i5 == 0) {
                        break label484;
                      }
                    }
                  }
                  kc[] arrayOfkc = (kc[])((k)localObject5).get(localObject10);
                  if ((i6 != 0) || (arrayOfkc != null))
                  {
                    if (i6 != 0) {
                      continue;
                    }
                    if (arrayOfkc.length > 0)
                    {
                      if (i6 != 0) {
                        continue;
                      }
                      if (!a((d)localObject9, localArrayList))
                      {
                        i2 = 1;
                        if (i6 != 0) {
                          break label560;
                        }
                        if (i5 == 0) {
                          break;
                        }
                      }
                    }
                  }
                  localObject9 = ((d)localObject9).i();
                } while (i5 == 0);
              }
              localObject7 = ((v)localObject7).a();
            }
            if (i6 != 0) {
              break label620;
            }
            if (i5 == 0) {
              break;
            }
          }
        }
        if (localObject7 == null) {
          break;
        }
        this.g.a(((v)localObject7).c(), localObject3);
        localObject7 = ((v)localObject7).a();
        if (i6 != 0) {
          break label620;
        }
        if (i6 != 0) {
          break label638;
        }
        if (i5 != 0) {
          break label636;
        }
      } while (i5 == 0);
      do
      {
        if (this.j)
        {
          if ((i6 == 0) && (i2 == 0)) {}
        }
        else
        {
          if (i6 != 0) {
            break label1003;
          }
          if (n < paramArrayOfbb.length - 1)
          {
            localObject8 = new bb();
            ((z)localObject1).add(localObject8);
            localArrayList.add(((z)localObject1).size() - 1, c.gb);
            localObject9 = ((bb)localObject2).l();
            do
            {
              if (!((a.c.w)localObject9).e()) {
                break label993;
              }
              localObject10 = ((a.c.w)localObject9).d();
              int i4 = ((e)localObject10).e();
              if (i6 != 0) {
                break label361;
              }
              if (i5 != 0) {
                break;
              }
              m localm = ((e)localObject10).n();
              do
              {
                do
                {
                  if (i4 <= 0) {
                    break label976;
                  }
                  d locald1 = localm.a();
                  e locale1 = locald1.f();
                  if (i6 != 0) {
                    break label361;
                  }
                  e locale2 = this.a.i();
                  localx.a(locale2, c.gb);
                  this.a.b(locale2, 1.0D, 1.0D);
                  d locald2 = this.a.a((e)localObject10, locale2);
                  d locald3 = this.a.a(locale2, locale1);
                  this.a.e(locald2).a(this.a.e(locald1).c());
                  this.a.e(locald3).b(this.a.e(locald1).d());
                  Object localObject11 = this.h.get(localObject10);
                  if (i5 != 0) {
                    break;
                  }
                  if (localObject11 == null) {
                    localObject11 = this.h.get(locale1);
                  }
                  if (localObject11 == null) {
                    localObject11 = locald1;
                  }
                  this.h.a(locale2, localObject11);
                  ((bb)localObject8).add(locale2);
                  this.g.a(locale2, localObject4);
                  this.a.f(locald1);
                  localm.f();
                  i4--;
                } while (i5 == 0);
                ((a.c.w)localObject9).f();
              } while (i6 != 0);
            } while (i5 == 0);
          }
        }
        n++;
      } while (i6 != 0);
    } while (i5 == 0);
    label560:
    label976:
    label993:
    label1003:
    label1011:
    e[] arrayOfe = new e[((z)localObject1).size()];
    this.b = this.a.B();
    Object localObject2 = this.a.w();
    label1264:
    do
    {
      do
      {
        if (!((m)localObject2).e()) {
          break label1477;
        }
        localObject3 = ((m)localObject2).a();
        if (i6 != 0) {
          break label1486;
        }
        if (i5 != 0) {
          break label1483;
        }
        if (this.h.get(((d)localObject3).e()) == null) {
          if ((i6 != 0) || (this.h.get(((d)localObject3).f()) != null))
          {
            localObject4 = (d)this.h.get(((d)localObject3).f());
            localObject5 = a((d)localObject4);
            if (i6 != 0) {
              continue;
            }
            if (localObject5 != null)
            {
              if (i6 != 0) {
                break;
              }
              if (localObject5.length > 0)
              {
                i1 = 0;
                Object localObject6 = localObject3;
                do
                {
                  if (this.h.get(((d)localObject6).f()) == null) {
                    break label1264;
                  }
                  localObject7 = ((d)localObject6).f();
                  localObject8 = localArrayList.get(this.g.getInt(localObject7));
                  if (i5 != 0) {
                    break;
                  }
                  if (((i6 == 0) && (localObject8 == c.gb)) || ((i6 != 0) || ((localObject8 == c.eb) || (localObject8 == c.db)))) {
                    arrayOfe[(i1++)] = localObject7;
                  }
                  localObject6 = ((e)localObject7).h();
                } while (i5 == 0);
                localObject7 = null;
                if (i6 != 0) {
                  break;
                }
                int i3 = 0;
                do
                {
                  if (i3 >= localObject5.length) {
                    break label1460;
                  }
                  if (i5 != 0) {
                    break;
                  }
                  switch (a(localObject5[i3].g()))
                  {
                  case 1: 
                    if (i6 == 0) {}
                    localObject7 = arrayOfe[0];
                    if (i6 != 0) {
                      continue;
                    }
                    if (i5 == 0) {
                      break;
                    }
                  case 0: 
                  case 4: 
                    localObject7 = arrayOfe[(i1 / 2)];
                    if (i6 != 0) {
                      continue;
                    }
                    if (i5 == 0) {
                      break;
                    }
                  case 2: 
                    if (i6 == 0) {}
                    localObject7 = arrayOfe[(i1 - 1)];
                    if (i6 != 0) {
                      continue;
                    }
                    if (i5 == 0) {
                      break;
                    }
                  case 3: 
                  default: 
                    localObject7 = arrayOfe[0];
                  }
                  a((e)localObject7, localObject5[i3]);
                  i3++;
                } while (i5 == 0);
              }
            }
          }
        }
        ((m)localObject2).f();
      } while (i6 != 0);
    } while (i5 == 0);
    label1460:
    label1477:
    if (i6 == 0) {
      label1483:
      b();
    }
    label1486:
    return (bb[])((z)localObject1).toArray(new bb[((z)localObject1).size()]);
  }
  
  private void a(e parame, kc paramkc)
  {
    z localz = (z)this.b.get(parame);
    if (f.o == 0) {
      if (localz == null)
      {
        localz = new z();
        this.b.a(parame, localz);
      }
    }
    localz.add(paramkc);
  }
  
  double a(List paramList)
  {
    int n = f.o;
    int m = f.n;
    double d1 = 0.0D;
    int k = 0;
    do
    {
      while (m == 0)
      {
        if (k >= paramList.size()) {
          break;
        }
        if (m != 0) {
          break label64;
        }
        d1 = Math.max(((kc)paramList.get(k)).b(), d1);
        k++;
      }
    } while (n != 0);
    label64:
    return d1;
  }
  
  private void b()
  {
    int i6 = f.o;
    int i5 = f.n;
    ArrayList localArrayList1 = new ArrayList(5);
    ArrayList localArrayList2 = new ArrayList(5);
    ArrayList localArrayList3 = new ArrayList(5);
    a.c.w localw = this.a.v();
    label147:
    label511:
    do
    {
      do
      {
        kc[] arrayOfkc;
        d locald;
        double d4;
        do
        {
          if (!localw.e()) {
            return;
          }
          e locale = localw.d();
          z localz = (z)this.b.get(locale);
          if ((i6 == 0) && (localz == null)) {
            break;
          }
          arrayOfkc = (kc[])localz.toArray(new kc[localz.size()]);
          locald = (d)this.h.get(locale);
          if (locald == null) {
            throw new IllegalStateException("realEdge == null: Can't be!!!");
          }
          double d1 = 0.0D;
          double d2 = 0.0D;
          double d3 = 0.0D;
          int k = 0;
          do
          {
            kc localkc1;
            int m;
            do
            {
              if (k >= arrayOfkc.length) {
                break;
              }
              localkc1 = arrayOfkc[k];
              m = localkc1.g().b();
            } while (i5 != 0);
            if (m == 16)
            {
              d1 = Math.max(d1, localkc1.b());
              if (i6 != 0) {
                continue;
              }
              if (i5 == 0) {}
            }
            else
            {
              if (i6 == 0)
              {
                if (m == 32) {
                  d2 = Math.max(d2, localkc1.b());
                }
              }
              else
              {
                if (i6 != 0) {
                  continue;
                }
                if (i5 == 0) {
                  break label257;
                }
              }
              d3 = Math.max(d3, localkc1.b());
            }
            k++;
          } while (i5 == 0);
          if (i6 == 0) {
            if (d3 > d1 * 2.0D) {
              d1 = d3 / 2.0D;
            }
          }
          if (i6 == 0) {
            if (d3 > d2 * 2.0D) {
              d2 = d3 / 2.0D;
            }
          }
          byte[] arrayOfByte = { 1, 4, 0, 2 };
          d4 = 0.0D;
          int n = 0;
          do
          {
            if (n >= arrayOfByte.length) {
              break label764;
            }
            localArrayList1.clear();
            localArrayList2.clear();
            localArrayList3.clear();
            if (i5 != 0) {
              break;
            }
            int i1 = 0;
            do
            {
              if (i1 >= arrayOfkc.length) {
                break label511;
              }
              kc localkc2 = arrayOfkc[i1];
              fd localfd = localkc2.g();
              if (i5 != 0) {
                break;
              }
              if (a(localfd) == arrayOfByte[n])
              {
                int i3 = localfd.b();
                if (i6 == 0) {
                  switch (i3)
                  {
                  case 16: 
                    localArrayList1.add(localkc2);
                    if (i6 != 0) {
                      continue;
                    }
                    if (i5 == 0) {
                      break;
                    }
                  case 32: 
                    localArrayList2.add(localkc2);
                    if (i6 != 0) {
                      continue;
                    }
                    if (i5 == 0) {
                      break;
                    }
                  }
                } else {
                  localArrayList3.add(localkc2);
                }
              }
              i1++;
            } while (i5 == 0);
            double d5 = d4;
            double d6 = d4;
            if (i6 != 0) {
              break label963;
            }
            int i4 = 0;
            kc localkc4;
            do
            {
              do
              {
                if (i4 >= localArrayList1.size()) {
                  break;
                }
                localkc4 = (kc)localArrayList1.get(i4);
                localkc4.b(d2, d5);
                d5 += localkc4.c();
                i4++;
                if (i6 != 0) {
                  break label598;
                }
                if (i5 != 0) {
                  break label596;
                }
              } while (i5 == 0);
            } while (i6 != 0);
            i4 = 0;
            do
            {
              if (i4 >= localArrayList2.size()) {
                break;
              }
              localkc4 = (kc)localArrayList2.get(i4);
              localkc4.b(d2 - localkc4.b(), d6);
              d6 += localkc4.c();
              i4++;
              if (i6 != 0) {
                break label678;
              }
              if (i5 != 0) {
                break label677;
              }
            } while (i5 == 0);
            if (i6 != 0) {
              break label147;
            }
            d4 = Math.max(d5, d6);
            i4 = 0;
            do
            {
              if (i4 >= localArrayList3.size()) {
                break;
              }
              localkc4 = (kc)localArrayList3.get(i4);
              localkc4.b(d2 - localkc4.b() / 2.0D, d4);
              d4 += localkc4.c();
              i4++;
              if (i6 != 0) {
                break label761;
              }
              if (i5 != 0) {
                break label759;
              }
            } while (i5 == 0);
            if (i6 == 0) {
              n++;
            }
          } while (i5 == 0);
          this.a.b(locale, d1 + d2, d4);
          a.d.w localw1 = new a.d.w(-(d1 + d2) / 2.0D + d2, -d4 / 2.0D);
          this.a.b(locale.i(), localw1);
          a.d.w localw2 = new a.d.w(-(d1 + d2) / 2.0D + d2, d4 / 2.0D);
          this.a.a(locale.h(), localw2);
        } while (i6 != 0);
        if ((i6 != 0) || (this.i.getBool(locald)))
        {
          int i2 = 0;
          do
          {
            if (i2 >= arrayOfkc.length) {
              break;
            }
            kc localkc3 = arrayOfkc[i2];
            localkc3.b(localkc3.d(), d4 - localkc3.c() - localkc3.e());
            i2++;
            if (i6 != 0) {
              break label963;
            }
            if (i5 != 0) {
              break label961;
            }
          } while (i5 == 0);
        }
      } while (i6 != 0);
      localw.f();
    } while (i5 == 0);
    label257:
    label596:
    label598:
    label759:
    label761:
    label764:
    return;
  }
  
  public kc[] a(d paramd)
  {
    k localk = this.a.c(oc.a);
    if (f.o == 0) {
      if (localk == null) {
        return null;
      }
    }
    return (kc[])localk.get(paramd);
  }
  
  private kc[] a(e parame)
  {
    z localz = (z)this.b.get(parame);
    if ((f.o != 0) || (localz != null))
    {
      kc[] arrayOfkc = (kc[])localz.toArray(new kc[localz.size()]);
      return arrayOfkc;
    }
    return null;
  }
  
  private boolean c()
  {
    if (f.o == 0) {
      if (!a()) {
        return false;
      }
    }
    k localk = this.a.c(oc.a);
    return localk != null;
  }
  
  public void a(ab paramab)
  {
    int n = f.o;
    int m = f.n;
    if (n == 0) {
      if (!c()) {
        return;
      }
    }
    a.c.w localw = this.a.v();
    label223:
    label225:
    do
    {
      do
      {
        if (!localw.e()) {
          break label228;
        }
        e locale = localw.d();
        kc[] arrayOfkc = a(locale);
        if (m != 0) {
          return;
        }
        if ((n != 0) || (arrayOfkc != null))
        {
          d locald = (d)this.h.get(locale);
          if (locald == null) {
            throw new IllegalStateException("realEdge == null: Can't be!!!");
          }
          zc localzc = this.a.k(locale);
          double d1 = localzc.a();
          double d2 = localzc.b();
          double d3 = localzc.c();
          double d4 = localzc.d();
          int k = 0;
          do
          {
            if (k >= arrayOfkc.length) {
              break;
            }
            double d5 = arrayOfkc[k].d();
            double d6 = arrayOfkc[k].e();
            arrayOfkc[k].b(d5 + d1, d6 + d2);
            k++;
            if (n != 0) {
              break label225;
            }
            if (m != 0) {
              break label223;
            }
          } while (m == 0);
        }
      } while (n != 0);
      localw.f();
    } while (m == 0);
    label228:
    c(paramab);
    d();
    if (n == 0) {
      this.a.a(this.b);
    }
  }
  
  public void d()
  {
    int n = f.o;
    int m = f.n;
    m localm = this.a.w();
    if (localm.e()) {
      if ((n == 0) && (!localm.a().g())) {}
    }
    label191:
    label194:
    while (n != 0)
    {
      d locald = localm.a();
      kc[] arrayOfkc = a(locald);
      if (n == 0)
      {
        if (arrayOfkc != null)
        {
          l.a(arrayOfkc, d);
          z localz = this.a.o(locald);
          a.d.w[] arrayOfw = (a.d.w[])localz.toArray(new a.d.w[localz.size()]);
          Object localObject = arrayOfw[0];
          int k = 1;
          a.d.w localw;
          do
          {
            if (k >= arrayOfw.length) {
              break;
            }
            localw = arrayOfw[k];
            if (n != 0) {
              break label194;
            }
            if (m != 0) {
              break label191;
            }
            if (((a.d.w)localObject).b() == localw.b())
            {
              a((a.d.w)localObject, localw, arrayOfkc, true);
              if (n == 0) {
                if (m == 0) {
                  break;
                }
              }
            }
            else
            {
              localObject = localw;
              k++;
            }
          } while (m == 0);
          if (n == 0)
          {
            if (k >= arrayOfw.length) {}
            localObject = arrayOfw[(arrayOfw.length - 1)];
          }
          k = arrayOfw.length - 2;
          do
          {
            if (k < 0) {
              break;
            }
            localw = arrayOfw[k];
            if (m != 0) {
              break label284;
            }
            if (((a.d.w)localObject).b() == localw.b())
            {
              a((a.d.w)localObject, localw, arrayOfkc, false);
              if (n == 0) {
                if (m == 0) {
                  break;
                }
              }
            }
            else
            {
              localObject = localw;
              k--;
            }
          } while (m == 0);
          if (n != 0) {
            break label293;
          }
          if (k >= 0) {}
        }
        localm.f();
      }
      if (m == 0) {
        break;
      }
    }
    label284:
    label293:
    return;
  }
  
  public void c(ab paramab)
  {
    int n = f.o;
    int m = f.n;
    m localm = paramab.l();
    label172:
    label175:
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      kc[] arrayOfkc = a(locald);
      if (n == 0)
      {
        if (arrayOfkc != null)
        {
          l.a(arrayOfkc, d);
          z localz = this.a.o(locald);
          a.d.w[] arrayOfw = (a.d.w[])localz.toArray(new a.d.w[localz.size()]);
          Object localObject = arrayOfw[0];
          int k = 1;
          a.d.w localw;
          do
          {
            if (k >= arrayOfw.length) {
              break;
            }
            localw = arrayOfw[k];
            if (n != 0) {
              break label175;
            }
            if (m != 0) {
              break label172;
            }
            if (((a.d.w)localObject).b() == localw.b())
            {
              a((a.d.w)localObject, localw, arrayOfkc, true);
              if (n == 0) {
                if (m == 0) {
                  break;
                }
              }
            }
            else
            {
              localObject = localw;
              k++;
            }
          } while (m == 0);
          if (n == 0)
          {
            if (k >= arrayOfw.length) {}
            localObject = arrayOfw[(arrayOfw.length - 1)];
          }
          k = arrayOfw.length - 2;
          do
          {
            if (k < 0) {
              break;
            }
            localw = arrayOfw[k];
            if (m != 0) {
              break label266;
            }
            if (((a.d.w)localObject).b() == localw.b())
            {
              a((a.d.w)localObject, localw, arrayOfkc, false);
              if (n == 0) {
                if (m == 0) {
                  break;
                }
              }
            }
            else
            {
              localObject = localw;
              k--;
            }
          } while (m == 0);
          if (n != 0) {
            continue;
          }
          if (k >= 0) {}
        }
        localm.f();
      }
    } while (m == 0);
    label266:
  }
  
  void a(a.d.w paramw1, a.d.w paramw2, kc[] paramArrayOfkc, boolean paramBoolean)
  {
    int i1 = f.o;
    int n = f.n;
    if (i1 == 0) {}
    int k = paramw1.a() < paramw2.a() ? 1 : 0;
    kc localkc;
    if (i1 == 0) {
      if (k != 0)
      {
        if (paramBoolean)
        {
          d1 = paramw1.a() + 10.0D;
          d2 = paramw1.b();
          m = 0;
          do
          {
            if (m >= paramArrayOfkc.length) {
              break;
            }
            localkc = paramArrayOfkc[m];
            if (i1 == 0)
            {
              if (localkc.g().a() == 2) {
                return;
              }
              localkc.b(d1, d2 - localkc.c() / 2.0D);
              d1 += localkc.b() + 10.0D;
              m++;
            }
          } while (n == 0);
        }
        d1 = paramw1.a() + 10.0D;
        d2 = paramw1.b();
        m = paramArrayOfkc.length - 1;
        do
        {
          if (m < 0) {
            break;
          }
          localkc = paramArrayOfkc[m];
          if (i1 == 0) {
            if (localkc.g().a() != 2) {
              return;
            }
          }
          t localt = localkc.a().a();
          localkc.b(d1, d2 - localkc.c() / 2.0D);
          d1 += localkc.b() + 10.0D;
          m--;
        } while (n == 0);
      }
    }
    if (paramBoolean)
    {
      d1 = paramw1.a() - 10.0D;
      d2 = paramw1.b();
      m = 0;
      do
      {
        if (m >= paramArrayOfkc.length) {
          break;
        }
        localkc = paramArrayOfkc[m];
        if (i1 == 0)
        {
          if (localkc.g().a() == 2) {
            return;
          }
          localkc.b(d1 - localkc.b(), d2 - localkc.c() / 2.0D);
          d1 -= localkc.b() + 10.0D;
          m++;
        }
      } while (n == 0);
    }
    double d1 = paramw1.a() - 10.0D;
    double d2 = paramw1.b();
    int m = paramArrayOfkc.length - 1;
    do
    {
      if (m < 0) {
        break;
      }
      localkc = paramArrayOfkc[m];
      if (i1 == 0)
      {
        if (localkc.g().a() != 2) {
          return;
        }
        localkc.b(d1 - localkc.b(), d2 - localkc.c() / 2.0D);
        d1 -= localkc.b() + 10.0D;
        m--;
      }
    } while (n == 0);
  }
  
  private boolean a(d paramd, List paramList)
  {
    int n = f.o;
    int m = f.n;
    d locald = paramd;
    int k = this.g.getInt(locald.e());
    do
    {
      if (this.h.get(locald.e()) == null) {
        break;
      }
      if (m != 0) {
        break label153;
      }
      if ((paramList.get(k) == c.db) || (paramList.get(k) == c.eb)) {
        return true;
      }
      locald = locald.e().i();
      k--;
    } while (m == 0);
    locald = paramd;
    if (n == 0)
    {
      k = this.g.getInt(locald.e()) + 1;
      if (this.h.get(locald.f()) == null) {
        break label180;
      }
      locald = locald.f().h();
      if (paramList.get(k) != c.db) {
        label153:
        if (paramList.get(k) != c.eb) {
          break label172;
        }
      }
    }
    label172:
    label180:
    while (n != 0)
    {
      return true;
      k++;
      if (m == 0) {
        break;
      }
    }
    return false;
  }
  
  public void e()
  {
    this.i = null;
    this.h = null;
    this.b = null;
    this.g = null;
    this.a = null;
  }
  
  public boolean f()
  {
    return this.j;
  }
  
  public void b(boolean paramBoolean)
  {
    this.j = paramBoolean;
  }
  
  private static byte a(fd paramfd)
  {
    byte b1 = paramfd.a();
    if (f.o == 0) {
      if (b1 == 7) {
        return 0;
      }
    }
    return b1;
  }
  
  private static class a_
    implements Comparator
  {
    boolean a;
    
    a_(boolean paramBoolean)
    {
      this.a = paramBoolean;
    }
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      int n = f.o;
      if (n == 0) {
        if (this.a)
        {
          localfd2 = ((kc)paramObject1).g();
          localfd1 = ((kc)paramObject2).g();
          if (n != 0) {
            break label66;
          }
          if (f.n == 0) {
            break label62;
          }
        }
      }
      fd localfd1 = ((kc)paramObject1).g();
      fd localfd2 = ((kc)paramObject2).g();
      label62:
      label66:
      int i = localfd1.b();
      int j = localfd2.b();
      int k = localfd1.a();
      int m = localfd2.a();
      if (n == 0) {
        if (k == m)
        {
          if (n == 0) {
            if (i == j) {
              return 0;
            }
          }
          if (n == 0) {
            if (i == 16) {
              return -1;
            }
          }
          if (n == 0) {
            if (j == 16) {
              return 1;
            }
          }
          if (n == 0)
          {
            if (i == 32) {
              return -1;
            }
            if (n != 0) {}
          }
          else if (j == 32)
          {
            return 1;
          }
          return 0;
        }
      }
      if (n == 0) {
        if (k == 1) {
          return -1;
        }
      }
      if (n == 0) {
        if (k == 2) {
          return 1;
        }
      }
      if (n == 0)
      {
        if (m == 1) {
          return 1;
        }
        if (n != 0) {}
      }
      else if (m == 2)
      {
        return -1;
      }
      return 0;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.db

 * JD-Core Version:    0.7.0.1

 */